<div id="taskQueryMain">
<#include "${viewDir}/common/operationManager/Nav.html">
<div class="zs-ibox" id="TaskQuery">
         <table class="zs-form-tab">
            <tbody>
             <tr>
             <td>运维内容</td>
             <td>
               <ul  class="zs-data-sizer" id="TaskUl">
                       <li ng-click="getTask('')" orgid="2" class="selected"><a href="#" >全部</a></li>
	                   <li ng-click="getTask(curRow.GUID)" ng-class="curRow.GUID == queryObject.QueryTaskObj.DVJob?'selected':''" orgid="{{curRow.GUID}}" value="curRow.GUID" ng-repeat="curRow in httpData.JobList.data"><a href="#" value="curRow.GUID">{{curRow.JOB_NAME}}</a></li>
	           </ul>
             </td>
             </tr>
             <tr>
             <td>运维组</td>
             <td>
               <ul  class="zs-data-sizer" id="groupUl">
                       <li ng-click="getGroup('')" orgid="2" class="selected"><a href="#" >全部</a></li>
	                   <li ng-click="getGroup(curRow.GUID)" orgid="{{curRow.GUID}}" value="curRow.GUID" ng-repeat="curRow in httpData.groupList.data"><a href="#" value="curRow.GUID">{{curRow.GROUP_NAME}}</a></li>
	           </ul>
             </td>
             </tr>
             <tr>
              <td>任务类型</td>
              <td>
               <ul  class="zs-data-sizer" id="TaskStatus">
                      <li ng-click="getTaskStatus()" orgid="3" ng-class="{selected:taskStatus.length==0}" class="selected"><a href="#" >全部</a></li>
	                  <li ng-click="getTaskStatus('1')" orgid="1" ng-class="{selected:taskStatus.indexOf('1')>-1}"><a href="#" >已完成</a></li>
	                  <li ng-click="getTaskStatus('2')" orgid="2" ng-class="{selected:taskStatus.indexOf('2')>-1}"><a href="#" >未完成</a></li>
	                  <li ng-click="getTaskStatus('0')" orgid="0" ng-class="{selected:taskStatus.indexOf('0')>-1}"><a href="#" >新任务</a></li>
	            </ul>
	           </td>
             </tr>
            </tbody>
        </table>
        <table  class="zs-form-tab" width="100%">
         <tbody>
             <tr>
              <td>时间</td>
              <td>
              <label>起始日期</label>
              &nbsp;
              <ag-Datebox class="zs-input" show-curday="true" add-days="-90"
						ng-model="queryObject.QueryTaskObj.start" ></ag-Datebox>
						&nbsp;
			   <label>结束日期</label>
			   &nbsp;
			   <ag-Datebox class="zs-input" show-curday="true"
						ng-model="queryObject.QueryTaskObj.end" ></ag-Datebox>
				<input type="button" value="查询" class="zs-btn" ng-click="getTaskList()"> 
              </td>
             </tr>
         </tbody>
        </table>
</div>
<div class="zs-ibox">
     <table class="zs-data-tab" width="100%">
        <thead>
            <tr>
                <!--  <th class="head">污染源</th> --> 
                <th class="head">监测点</th>
                <th class="head">站点状态</th>
                <th class="head">运维内容</th>
                <th class="head">任务状态</th>
                <th class="head">运维组</th>
                <th class="head">任务开始时间</th>
                <th class="head">任务结束时间</th>
                <th class="head">是否及时</th>
                <th class="head">完成结果</th>
                <th class="head">查看详细记录</th>
                <th class="head">有无异常</th>
            </tr>
        </thead>
        <tbody>
        	<tr ng-if="httpData.TaskList.isLoading==true">
        		<td colspan="10">数据加载中…………</td>
        	</tr>
           <tr ng-repeat="curRow in httpData.TaskList.data" class="{{ isDoubleNum($index) ? 'even':'' }}" ng-if="httpData.TaskList.isLoading==false">
			     <td class="center"><a><label ng-bind="curRow.STATION_NAME"></label></a></td>
	             <td class="center"><a><label ng-bind="curRow.STATION_ONOFF_DESC"></label></a></td>
			     <td class="center"><a><label ng-bind="curRow.JOB_NAME"></label></a></td>
			     <td class="center"><a><label ng-bind="curRow.TASK_STATUS_DESC"></label></a></td>
			     <td class="center"><a><label ng-bind="curRow.GROUP_NAME"></label></a></td>
			     <td class="center"><a><label ng-bind="curRow.START_TIME"></label></a></td>
			     <td class="center"><a><label ng-bind="curRow.END_TIME"></label></a></td>
			     <td class="center">
			     	<a ng-if="curRow.TASK_STATUS =='1' ">及时</a>
			     	<a ng-if="curRow.TASK_STATUS !='1' ">不及时</a>
			     </td>
			     <!-- <td class="center"><a><label ng-bind="curRow.TASK_STATUS"></label></a></td>  -->
			     <td class="center"><a><label ng-bind="curRow.TASK_RESULT_TEXT"></label></a></td>
			     <td class="center"><a style="cursor: pointer" ng-click="getDetail(curRow.TASK_CODE,curRow.PS_WWTP_ID,curRow.WWTP_NAME,curRow.JOB_ID)">查看</a></td>
			     <td class="center">
			        <a style="cursor: pointer;color:red;"  ng-if="curRow.IS_UNUSUAL=='1'" ng-click="getExceptionDetail(curRow.TASK_CODE)">{{curRow.IS_UNUSUAL_DESC}}</a>
			        <a ng-if="curRow.IS_UNUSUAL!='1'">{{curRow.IS_UNUSUAL_DESC}}</a>
			     </td>
            </tr>
        </tbody>
    </table>
    <div class="zs-page"> 
               <a ng-click="waterDataCommon.firstPage(httpData.TaskList,queryObj.QueryTaskObj)">首页</a>
		        <a class="pre" ng-click="waterDataCommon.prePage(httpData.TaskList,queryObj.QueryTaskObj)">上一页</a>
		        <a class="next" ng-click="waterDataCommon.nextPage(httpData.TaskList,queryObj.QueryTaskObj)">下一页</a>
		        <a ng-click="waterDataCommon.lastPage(httpData.TaskList,queryObj.QueryTaskObj)">尾页</a>
                <a >
                    <label ng-bind="httpData.TaskList.pageInfo.pageIndex"></label>
                </a> / 
                <a >
                    <label ng-bind="httpData.TaskList.pageInfo.pageCount"></label>
                </a>
     </div>
   </div>
</div>

<div  style="display: none" id="taskDetail">
	<div ui-view></div>
</div>